package com.usian.common.exception;

import com.usian.model.common.dtos.ResponseResult;

public class CustomException extends RuntimeException {

    private ResponseResult responseResult;

    /**
     * int code
     * String msg
     */
    public CustomException(Integer code,String msg){
        this.responseResult = new ResponseResult(code,msg);

    }

    public ResponseResult getResponseResult() {
        return responseResult;
    }
}
